package bo;

import java.rmi.RemoteException;

public class InterventionPlanifiee extends InterventionEtat{

        private final String libelle = "PL";
    
        @Override
        public synchronized boolean setInterventionEtat(Intervention intervention) throws RemoteException {
                if (intervention == null) {
                    return false;
                }
                if (!ListeInterventions.getInstance().contientIntervention(intervention)) {
                    return false;
                }
                //Seule une intervention Cree ou Deplanifiee peut Ãªtre Planifiee
                //if (intervention.getStatut().getlibelle().contentEquals("CR") || intervention.getStatut().getlibelle().contentEquals("DE")) {
                //    return false;
                //}
                return true;
        }
    
        public synchronized String getlibelle(){
                return this.libelle;
        }
}